package com.sunlong.jiangwei.service.impl;

import com.sunlong.jiangwei.dao.JwUserAddresslistMapper;
import com.sunlong.jiangwei.entity.JwUserAddresslist;
import com.sunlong.jiangwei.service.IJwUserAddresslistService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author 孙龙
 * @since 2021-02-19
 */
@Service
public class JwUserAddresslistServiceImpl implements IJwUserAddresslistService {
    @Autowired
    private JwUserAddresslistMapper addresslistMapper;

    @Override
    public List<JwUserAddresslist> list(Map<String, Object> map) {
        Integer userId = (Integer) map.get("userId");
        JwUserAddresslist jwUserAddresslist = new JwUserAddresslist();
        jwUserAddresslist.setUserId(Long.valueOf(userId));
        List<JwUserAddresslist> select = addresslistMapper.select(jwUserAddresslist);
        return select;
    }
}
